Skip to content

footer: remove trailing slashes to prevent 404s#31

Merged
dscho merged 1 commit intogitgitgadget:mainfrom
ritovision:footer
Mar 13, 2026
Merged

footer: remove trailing slashes to prevent 404s#31
dscho merged 1 commit intogitgitgadget:mainfrom
ritovision:footer

Conversation

@ritorhymes
Copy link
Contributor

I found an edge case: on GitHub Pages, with uglyURLs enabled, extensionless paths with trailing slashes return 404.

Footer links currently include trailing slashes, so they are 404ing.

This change removes trailing slashes from footer links so they resolve correctly.

Path behavior:
/architecture.html = ✅
/architecture = ✅
/architecture/ = ❌

trailing slashes result in 404 for GitHub Pages when
an extensionless path is used with uglyURLs enabled
@dscho dscho merged commit 7cb2429 into gitgitgadget:main Mar 13, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants